<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增解决方案')" />
</head>
<body class="white-bg">
  <div class="form-content">
    <form class="form-horizontal m" id="form-sewagePlan-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label"><span style="color: red; ">*</span>方案名称：</label>
				<div class="col-sm-8">
					<input id="planName" name="planName" class="form-control" type="text" maxlength="20" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label"><span style="color: red; ">*</span>技术原理：</label>
				<div class="col-sm-8">
          <textarea name="planTech" maxlength="1000" class="form-control" rows="15" required></textarea>
				</div>
			</div>
		</form>
	</div>
  <div class="row">
    <div class="col-sm-offset-5 col-sm-10">
      <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
      <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
    </div>
  </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "sewage/sewagePlan"
		$("#form-sewagePlan-add").validate({
			focusCleanup: true
		});
		
		function submitHandler() {
      if ($.validate.form()) {
          $.operate.saveTab(prefix + "/add", $('#form-sewagePlan-add').serialize());
      }
    }
	</script>
</body>
</html>
